//
//  MyInfoCell.m
//  e律师
//
//  Created by 韦淋 on 2017/5/17.
//  Copyright © 2017年 test. All rights reserved.
//

#import "MyInfoCell.h"

@implementation MyInfoCell

- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        [self initalizeInterface];
    }
    return self;
}
- (void)initalizeInterface{
    [self.contentView addSubview:self.titleLable];
    [self.contentView addSubview:self.inputInfo];
}
- (void)layoutSubviews{
    
    self.titleLable.frame = CGRectMake(10, 0, 100, 40);
    self.inputInfo.frame = CGRectMake(110, 0, 200, 40);
}

- (UILabel *)titleLable{
    if (!_titleLable) {
        _titleLable = [[UILabel alloc]init];
        _titleLable.textColor = [UIColor blackColor];
//        _titleLable.backgroundColor = [UIColor lightGrayColor];
        _titleLable.font = [UIFont systemFontOfSize:13];
    }
    return _titleLable;
}
- (UITextField *)inputInfo{
    if (!_inputInfo) {
        _inputInfo = [[UITextField alloc] init];
        _inputInfo.backgroundColor = [UIColor lightGrayColor];
    }
    return _inputInfo;
}


@end
